package com.hopu.mybatis_plus_demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hopu.mybatis_plus_demo.entity.Employee;

import java.util.List;

/**
 * Employee的通用Mapper
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    List<Employee> selectAll();

    /**
     * 分页功能
     * @param page
     * @return
     */
    IPage<Employee> selectPage(Page<Employee> page);
}
